
* balance table for socio-economic indicators

capture rm "$path_tables/socioeconomic_balance.tex"
texdoc init "$path_tables/socioeconomic_balance.tex"
tex \begin{tabular}{ L{8.5cm} L{1.7cm} C{1.7cm} C{1.7cm} C{1.7cm} C{1.7cm} } \hline \hline
tex  				& Control			& Treated &  Cash				& Labour  		& Waiver			 \\ \hline

foreach var of global vars {
tex ${lab_`var'}	& ${`var'_m_control} 	& ${`var'_m_t} 		 & ${`var'_m_cash}		& ${`var'_m_labour}		& ${`var'_m_waiver}				\\
tex 				& (${`var'_sd_control}) & (${`var'_sd_t}) 	 & (${`var'_sd_cash})	& (${`var'_sd_labour})	& (${`var'_sd_waiver})	 			\\
}
tex \hline 
tex Pvalue of F-test for joint significance	& & ${joint_pvalue_treated} & ${joint_pvalue_cash}	& ${joint_pvalue_labour}& ${joint_pvalue_waiver} \\	
tex Pvalue of Hotelling's T-Squared test	& & ${hot_pvalue_treated}  & ${hot_pvalue_cash}		& ${hot_pvalue_labour}	& ${hot_pvalue_waiver} \\	
tex \hline \hline
tex \end{tabular} 
texdoc close
eststo clear
